<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/3
 * Time: 16:53
 */

require 'bootstrap.php';
$config = require 'Application/Config/config.php';

$app = new \Louis\App($config);

$request = $app->getContainer()->get("router");


/**
 * RouteCollector
 */
$routeCollector = $app->getContainer()->get("router");

$routeCollector->addRoute('GET', '/', 'Application\Controllers\IndexController::create');
//$routeCollector->addRoute('GET', '/users', 'get_all_users_handler');
//$routeCollector->addRoute('GET', '/user/{id:\d+}', 'app::user');
//$routeCollector->addRoute('GET', '/articles/{id:\d+}[/{title}]', 'get_article_handler');


$app->run();

